package cn.exrick.xboot.modules.dataAnalysis.serviceimpl;

import cn.exrick.xboot.modules.dataAnalysis.dao.mapper.DataAnalysisMapper;
import cn.exrick.xboot.modules.dataAnalysis.entity.DataAnalysis;
import cn.exrick.xboot.modules.dataAnalysis.service.IDataAnalysisService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 数据分析访问接口管理接口实现
 * @author Exrick
 */
@Slf4j
@Service
@Transactional
public class IDataAnalysisServiceImpl extends ServiceImpl<DataAnalysisMapper, DataAnalysis> implements IDataAnalysisService {

    @Autowired
    private DataAnalysisMapper dataAnalysisMapper;
    /**
     * 20190725
     * njp
     * 新增数据分析访问接口管理分页的条件查询(使用map作为条件的载体)
     * map 为参数
     */
    public IPage<DataAnalysis> selectDataAnalysisPageVoMap(Page page, @Param("map") Map<String,Object> map){
        return dataAnalysisMapper.selectDataAnalysisPageVoMap(page,map);
    }
}